package com.zgl.gemduel.controller;

import org.springframework.web.bind.annotation.*;
import java.util.Map;

@RestController
@RequestMapping("/")
public class HelloController {

    @PostMapping("/hello")
    public String sayHello(@RequestBody Map<String, Object> payload) {
        String name = (String) payload.getOrDefault("name", "World");
        return "Hello, " + name + "!";
    }
}